#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void BubbleSort(int arr[10])
{
	for (int j = 0; j < 10; j++)
	{
		for (int i = 0; i < 10; i++)
		{
			if (arr[i] < arr[i + 1])
			{
				int temp = 0;
				temp = arr[i];
				arr[i] = arr[i + 1];
				arr[i + 1] = temp;
			}
		}
	}
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
}

int main()
{
	int arr[10] = { 0 };
	for (int i = 0; i < 10; i++)
	{
		arr[i] = i+1; 
		printf("%d ", arr[i]);
	}
	printf("\n ");
	BubbleSort(arr);
	return 0;
}